package day5;

/**
 * @Author juzipi
 * @Date 2021/6/8 14:34
 * @Info
 */
public class NestedLoopPractice {

    public static void main(String[] args) {

        for (int i = 0; i < 4; i++) {
            for (int j = 0; j < 6; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

        System.out.println("--------------------");

        for (int i = 1; i <= 5; i++) {//行数
            for (int j = 1; j <= i; j++) {//列数
                System.out.print("*");
            }
            System.out.println();
        }


        for (int i = 1; i <= 9; i++){
            for (int j = 1; j <= i; j++) {
                System.out.print(j+"*"+i+"="+(i*j)+"  ");
            }
            System.out.println();
        }

    }

}
